const state = {
  text: '你好，欢迎使用vue-base-template'
}

const mutations = {
  setText: (state, data) => {
    state.text = data
  }
}

const actions = {
  setText({ commit }, data) {
    commit('setText', data)
  }
}

export default {
  state,
  mutations,
  actions
}
